import Vue from 'vue'
import App from './App'
import { all } from 'vue-client'
import { system } from 'system-clients'
Vue.config.silent = true
import echarts from 'echarts'
/** **************************通用组件******************************/

Vue.prototype.$echarts = echarts
all()
system()
require('./bootstrap/less/bootstrap.less')
// 测试
Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
Vue.component('gas-pro', (resolve) => { require(['./components/GasProperties'], resolve) })
// 用户数量
Vue.component('usernumber', (resolve) => { require(['./components/UserNumber'], resolve) })
// 售气收费
Vue.component('chargeGas', (resolve) => { require(['./components/ChargeGas'], resolve) })
// 售气分析
Vue.component('sellinganalysis', (resolve) => { require(['./components/SellingAnalysis'], resolve) })
// 同年销售对比分析
Vue.component('salesComparison', (resolve) => { require(['./components/SalesComparison'], resolve) })
// 汇总数
Vue.component('collection', (resolve) => { require(['./components/Collection'], resolve) })
// 用气分析
Vue.component('consumeAnalysis', (resolve) => { require(['./components/ConsumeAnalysis'], resolve) })
// 第一个组件：检查隐患
Vue.component('checkHiddenDanger', (resolve) => { require(['./components/CheckHiddenDanger'], resolve) })
// 第二个组件：检查任务数
Vue.component('checkTaskCount', (resolve) => { require(['./components/CheckTaskCount'], resolve) })
// 第三个组件：检查用户隐藏
Vue.component('checkUserhide', (resolve) => { require(['./components/CheckUserhide'], resolve) })
// 第四个组件：检查用户类型
Vue.component('checkUsertype', (resolve) => { require(['./components/CheckUsertype'], resolve) })
// 钻取父组件
Vue.component('total', (resolve) => { require(['./components/Total'], resolve) })
// 钻取饼状图
Vue.component('bar', (resolve) => { require(['./components/bar'], resolve) })
// 钻取明细
Vue.component('list', (resolve) => { require(['./components/List'], resolve) })
//数据模型
Vue.component('datamodel', (resolve) => { require(['./components/DataModel'], resolve) })
//维修任务完成度
Vue.component('maintenancetask', (resolve) => { require(['./components/MaintenanceTask'], resolve) })
new Vue({
  el: 'body',
  components: { App }
})

